package com.mvvm.ktnet.ui.recyclerView

import android.os.Bundle
import android.util.Log
import androidx.lifecycle.lifecycleScope
import com.android.ktx.view.onClick
import com.mvvm.ktnet.R
import com.mvvm.ktnet.base.myappbase.BaseDbActivity
import com.mvvm.ktnet.base.viewmodel.BaseViewModel
import com.mvvm.ktnet.databinding.AcRecyclerviewBinding
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch

class TestRecyclerview : BaseDbActivity<BaseViewModel, AcRecyclerviewBinding>() {
    override fun layoutId(): Int = R.layout.ac_recyclerview


    override fun initView(savedInstanceState: Bundle?) {

        mDatabind.recycler.setBindYear(System.currentTimeMillis())

        mDatabind.today.onClick {

            mDatabind.recycler.backToday()

        }

    }

    override fun createObserver() {

    }

    override fun initData() {

    }

    suspend fun getTest() {
        delay(2000)
        Log.e("1111", "initView:     \"sss\"")
    }

}